// const uniID = require('uni-id-common')
module.exports = async function(params = {}) {

	const clientInfo = this.getUniversalClientInfo()
	// 创建uni-id实例
	// this.uniID = uniID.createInstance({
	// 	clientInfo
	// })
	const {
	  token,
	  tokenExpired
	} = await this.uniIdCommon.refreshToken({
	  token: clientInfo.uniIdToken
	})
	
	return {
		errCode: 0,
		errMsg: 'refresh-token',
		token,
		tokenExpired
	}
}